
#include "stdafx.h"
#include "WicColorTransform.h"

CWicColorTransform::CWicColorTransform()
{
    m_pIWICColorTransform = NULL;
}

CWicColorTransform::~CWicColorTransform()
{
    if(m_pIWICColorTransform)
    {
        m_pIWICColorTransform->Release();
    }
    m_pIWICColorTransform = NULL;
}

CWicColorTransform::CWicColorTransform(CWicColorTransform const & objColorTransform)
{
    m_pIWICColorTransform = objColorTransform.m_pIWICColorTransform;
    m_pIWICColorTransform->AddRef();
}

CWicColorTransform& CWicColorTransform::operator=(CWicColorTransform const & objColorTransform)
{
    if(m_pIWICColorTransform)
    {
        m_pIWICColorTransform->Release();
    }
    m_pIWICColorTransform = objColorTransform.m_pIWICColorTransform;
    m_pIWICColorTransform->AddRef();
    return *this;
}
